package com.lupan.passwordbox.common.validator;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

/**
 * 说明：
 *
 * @author lupan
 * @version 2017/8/16 15:04
 */
public class Beyond5ConstraintValidator implements ConstraintValidator<Beyond5,Integer> {

    @Override
    public boolean isValid(Integer integer, ConstraintValidatorContext constraintValidatorContext) {
        return integer != null && integer > 5;
    }
}
